<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <title>Preview View</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <link href="../../stylesheet.css" type="text/css" rel="stylesheet"/>
<link href="../../page_styles1.css" type="text/css" rel="stylesheet"/>

  


<link href="../../calibreHtmlOutBasicCss.css" type="text/css" rel="stylesheet" />

</head>
<body>

<div class="calibreMeta">
  <div class="calibreMetaTitle">
  
  
    
    <h1>
      <a href="../../../index.html">Sigil User Guide
</a>
    </h1>
    
    
  
  </div>
  <div class="calibreMetaAuthor">
    0.7.2

  </div>
</div>

<div class="calibreMain">

  <div class="calibreEbookContent">
    
      <div class="calibreEbNavTop">
        
          <a href="code_view.html" class="calibreAPrev">previous page</a>
        

        
          <a href="book_browser.html" class="calibreANext"> next page</a>
        
      </div>
    

    
  <h2 id="preview" class="calibre5">Preview</h2>

  <p class="h2subheading">— Show Code View Changes —</p>

  <p class="calibre1">Preview is a movable window that gives you a dynamically updated read-only view of what appears in Code View. It is the same view as Book View but it can be displayed at the same time you edit in Code View. You can also inspect your code and styles in a small window at the bottom (or hide the window).</p>

  <p class="calibre1">You can use Preview to show the results of changes in your code (including immediate feedback of errors), and you can also open a CSS stylesheet to make changes that are shown in Preview.</p>

  <p class="calibre1">Activate the Preview window by selecting the menu item <span class="shortcut">View→Preview</span> or its keyboard shortcut:</p>

  <div class="image"><img alt="preview-window" src="../Images/preview-window.png" class="calibre7"/></div>

  <div class="tip">
    <p class="tiptext">You can toggle the Preview window open or closed with its shortcut, and even move the window to a second monitor if you have one.</p>
  </div>

  <p class="calibre1">The Preview window will be updated immediately when you click somewhere in Code View or Book View. It will also be updated after you stop typing for a short time.</p>

  <div class="tip">
    <p class="tiptext">If you click in Preview the Code View or Book View tab will sync to the same location.</p>
  </div>

  <h3 class="sigilnotintoc">Context Menu</h3>

  <p class="calibre1">The Preview context menu includes one very useful feature:</p>

  <p class="calibre1">Right-click on a heading, paragraph, or any area of the screen to see this option:</p>

  <ul class="calibre3">
    <li class="calibre4"><span class="listheading">Inspect Element:</span> Show details for this text in the Inspector window.</li>
  </ul>

  <h3 class="sigilnotintoc">Inspector Window</h3>

  <p class="calibre1">The Inspector Window is the small window at the bottom of the Preview page. You can re-size this window by selecting the bar that divides the two windows and moving it to the size you want, including hiding it.</p>

  <p class="calibre1">The Inspector window is an HTML developer’s tool that allows detailed examination of the code behind the book’s appearance. It is intended to allow you to see why specific sections of your book are displayed the way they are, and to make temporary changes to styles and text to see how they affect your text.</p>

  <div class="tip">
    <p class="tiptext">Any changes you make in the Inspector window are only temporary and are not saved!</p>
  </div>

  <p class="calibre1">The Inspector is basically the Chrome web developer toolset and you can find more information about it from their documentation. Not all the information applies to Sigil since the software is meant for general web page inspection. Scroll down to the Developer Window section to see what functions are available:</p>

  <ul class="calibre3">
    <li class="calibre4"><a href="https://developers.google.com/chrome-developer-tools/docs/overview">Inspector for Chrome Developer Tools</a></li>
  </ul>

  <p class="calibre1">The easiest way to use the Inspector is to right-click on the text you are interested in the top window and select <span class="shortcut">Inspect Element</span>.</p>

  <p class="calibre1">The other way to use the Inspector is to click on the magnifying glass at the bottom of the Inspector then scroll the preview area to the text of your book that you want to inspect and click on it. The inspector pane will scroll to the related section of code, allowing you to view various details about the text.</p>

  <p class="calibre1">You can then make temporary modifications to the styles used by the text to test out changes. Changes to styles are reflected immediately in the Preview area, but if you edit any text you may need to click in the Preview area to refresh it. You can then update your CSS stylesheets to include any changes you decide to keep.</p>

  <div class="tip">
    <p class="tiptext">If you click on an area in the inspector section, the preview area will not sync as you might expect.</p>
  </div>

  <h3 class="sigilnotintoc">CSS Stylesheet Preview</h3>

  <p class="calibre1">You can see how changes in your CSS stylesheets affect your text immediately in Preview.</p>

  <p class="calibre1">To use this feature, open an HTML page and open Preview. Then open your CSS Stylesheet.</p>

  <p class="calibre1">As you edit your styles in the stylesheet the changes will be reflected in your HTML file in Preview after you stop typing for a second.</p>



  </div>

  
  <div class="calibreToc">
    <h2><a href="../../../index.html"> Table of contents</a></h2>
     <div>
  <ul>
    <li>
      <a href="cover_picture.html">Cover</a>
    </li>
    <li>
      <a href="titlepage.html">Title Page</a>
    </li>
    <li>
      <a href="rights.html">Copyright</a>
    </li>
    <li>
      <a href="introduction.html">Introduction</a>
      <ul>
        <li>
          <a href="whats_new.html">What’s New</a>
        </li>
        <li>
          <a href="about_sigil.html">About Sigil</a>
        </li>
        <li>
          <a href="about_epub.html">About EPUB</a>
        </li>
      </ul>
    </li>
    <li>
      <a href="installation.html">Installation</a>
    </li>
    <li>
      <a href="features.html">Features</a>
      <ul>
        <li>
          <a href="user_interface.html">User Interface</a>
        </li>
        <li>
          <a href="preferences.html">Preferences</a>
        </li>
        <li>
          <a href="opening_and_saving_files.html">Opening and Saving Files</a>
        </li>
        <li>
          <a href="book_view.html">Book View</a>
        </li>
        <li>
          <a href="code_view.html">Code View</a>
        </li>
        <li>
          <a href="preview.html">Preview</a>
        </li>
        <li>
          <a href="book_browser.html">Book Browser</a>
        </li>
        <li>
          <a href="metadata.html">Metadata</a>
        </li>
        <li>
          <a href="add_cover.html">Add Cover</a>
        </li>
        <li>
          <a href="table_of_contents.html">Table of Contents</a>
        </li>
        <li>
          <a href="validation.html">Validation</a>
        </li>
        <li>
          <a href="spellcheck.html">Spellcheck</a>
        </li>
        <li>
          <a href="media_files.html">Images, Video, Audio</a>
        </li>
        <li>
          <a href="special_characters.html">Special Characters</a>
        </li>
        <li>
          <a href="splitting_and_merging.html">Splitting and Merging</a>
        </li>
        <li>
          <a href="find_replace.html">Find &amp; Replace</a>
        </li>
        <li>
          <a href="saved_searches.html">Saved Searches</a>
        </li>
        <li>
          <a href="clips.html">Clips</a>
        </li>
        <li>
          <a href="clipboard_history.html">Clipboard History</a>
        </li>
        <li>
          <a href="links.html">Links and IDs</a>
        </li>
        <li>
          <a href="styles.html">Styles</a>
        </li>
        <li>
          <a href="indexes.html">Indexes</a>
        </li>
        <li>
          <a href="reports.html">Reports</a>
        </li>
        <li>
          <a href="external_editors.html">External Editors</a>
        </li>
      </ul>
    </li>
    <li>
      <a href="tutorials.html">Tutorials</a>
      <ul>
        <li>
          <a href="tutorial_getting_started_with_epub.html">Getting Started With EPUB</a>
        </li>
        <li>
          <a href="tutorial_convert_to_html.html">Prepare Your File For Sigil</a>
        </li>
        <li>
          <a href="tutorial_load_file.html">Open Your File With Sigil</a>
        </li>
        <li>
          <a href="tutorial_save.html">Save Your EPUB File</a>
        </li>
        <li>
          <a href="tutorial_metadata.html">Add the Author and Title</a>
        </li>
        <li>
          <a href="tutorial_add_cover.html">Add a Cover Image</a>
        </li>
        <li>
          <a href="tutorial_split.html">Create Files For Each Chapter</a>
        </li>
        <li>
          <a href="tutorial_mark_chapters.html">Identify Your Chapters</a>
        </li>
        <li>
          <a href="tutorial_generate_toc.html">Generate A Table of Contents</a>
        </li>
        <li>
          <a href="tutorial_links.html">Create Links and Notes</a>
        </li>
        <li>
          <a href="tutorial_code_view.html">A Quick Introduction To Code View</a>
        </li>
        <li>
          <a href="tutorial_spelling.html">Check For Spelling Mistakes</a>
        </li>
        <li>
          <a href="tutorial_validate.html">Check For Errors In Your EPUB</a>
        </li>
        <li>
          <a href="tutorial_find_replace.html">Edit With Find &amp; Replace</a>
        </li>
        <li>
          <a href="tutorial_stylesheets.html">Use Stylesheets</a>
        </li>
        <li>
          <a href="tutorial_embed_fonts.html">Include Custom Fonts</a>
        </li>
        <li>
          <a href="tutorial_advanced_find.html">Advanced Find &amp; Replace – Regex</a>
        </li>
        <li>
          <a href="tutorial_regex_reference.html">Regular Expression Reference</a>
        </li>
        <li>
          <a href="tutorial_tips.html">Tips</a>
        </li>
      </ul>
    </li>
    <li>
      <a href="faq.html">FAQ</a>
      <ul>
        <li>
          <a href="faq.html#faq_common_questions">Common Questions</a>
        </li>
        <li>
          <a href="faq.html#faq_questions">Where to Get Help</a>
        </li>
        <li>
          <a href="faq.html#faq_using_sigil">Using Sigil</a>
        </li>
        <li>
          <a href="faq.html#faq_formatting">Formatting and Styles</a>
        </li>
      </ul>
    </li>
    <li>
      <a href="contributing_to_sigil.html">Contributing to Sigil</a>
    </li>
  </ul>
</div>


  </div>
  

  <div class="calibreEbNav">
    
      <a href="code_view.html" class="calibreAPrev">previous page</a>
    

    <a href="../../../index.html" class="calibreAHome"> start</a>

    
      <a href="book_browser.html" class="calibreANext"> next page</a>
    
  </div>

</div>

</body>
</html>
